package com.mutouren.modules.ca.model;

import java.util.Date;

import com.mutouren.common.entity.ValidState;

public class User {
	private Long userId;
	private String userName;
	private String password;
	private Integer salt;
	private String realName;
	
	private String email;
	private String mobile;
	private Boolean isApprove;
	private Boolean isVerifyEmail;
	private Boolean isVerifyMobile;
	
	private Date passwordModifyTime;
	private Date lastLoginTime;
	private ValidState validState;
	private Date createTime;
	private Date updateTime;
	
	public User() {
		this.isApprove = false;
		this.isVerifyEmail = false;
		this.isVerifyMobile = false;
		this.validState = ValidState.Normal;
	}
	
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public Integer getSalt() {
		return salt;
	}
	public void setSalt(Integer salt) {
		this.salt = salt;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public Boolean getIsApprove() {
		return isApprove;
	}
	public void setIsApprove(Boolean isApprove) {
		this.isApprove = isApprove;
	}
	public Boolean getIsVerifyEmail() {
		return isVerifyEmail;
	}
	public void setIsVerifyEmail(Boolean isVerifyEmail) {
		this.isVerifyEmail = isVerifyEmail;
	}
	public Boolean getIsVerifyMobile() {
		return isVerifyMobile;
	}
	public void setIsVerifyMobile(Boolean isVerifyMobile) {
		this.isVerifyMobile = isVerifyMobile;
	}
	public Date getPasswordModifyTime() {
		return passwordModifyTime;
	}
	public void setPasswordModifyTime(Date passwordModifyTime) {
		this.passwordModifyTime = passwordModifyTime;
	}
	public Date getLastLoginTime() {
		return lastLoginTime;
	}
	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}
	public String getDisplayValidState() {
		return ValidState.display(validState);
	}	
	public ValidState getValidState() {
		return validState;
	}
	public void setValidState(ValidState validState) {
		this.validState = validState;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
